package com.ymatou.iapi.productmanager.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.productmanager.parameter.BatchSetProductOffSaleByCatalogStatusNewBean;
import com.ymatou.iapi.productmanager.service.BatchSetProductOffSaleByCatalogStatusNewCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*批量下架买手没有物流权限的商品Test
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_BatchSetProductOffSaleByCatalogStatusNew{
	private static BatchSetProductOffSaleByCatalogStatusNewBean batchsetproductoffsalebycatalogstatusnewBean;
	private static BatchSetProductOffSaleByCatalogStatusNewCall batchsetproductoffsalebycatalogstatusnewCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("批量下架买手没有物流权限的商品Test");
	}

	@Before
	public void caseUp() {
		batchsetproductoffsalebycatalogstatusnewBean=new BatchSetProductOffSaleByCatalogStatusNewBean();
		batchsetproductoffsalebycatalogstatusnewCall=new BatchSetProductOffSaleByCatalogStatusNewCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(batchsetproductoffsalebycatalogstatusnewCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_BatchSetProductOffSaleByCatalogStatusNew_001() {
		Logger.start(true,"正确数据，成功");
		try {
			batchsetproductoffsalebycatalogstatusnewBean.setSellerId(3383);
			batchsetproductoffsalebycatalogstatusnewCall.setData(batchsetproductoffsalebycatalogstatusnewBean);
			batchsetproductoffsalebycatalogstatusnewCall.callService();			
			Logger.verifyEquals("ok", batchsetproductoffsalebycatalogstatusnewCall.getReturnData(), "验证code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}